package com.extr.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.extr.domain.practice.LogException;
import com.extr.persistence.LogExceptionMapper;

@Service("logExceptionService")
public class LogExceptionServiceImpl implements LogExceptionService {

	@Autowired
	private LogExceptionMapper logMapper;
	
	@Override
	@Transactional
	public void addLog(LogException log) {
		// TODO Auto-generated method stub
		try{
			logMapper.insert(log);
		}catch(Exception e){
			throw new RuntimeException(e);
		}
	}

}
